package com.shengsheng.expschedule.service.expschedule.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 实验室选课表
 * </p>
 *
 * @author yuan
 * @since 2021-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("manage_schedule")
@ApiModel(value = "Schedule对象", description = "实验室排课表")
public class Schedule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课时ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "学期 ID")
    private String semesterId;

    @ApiModelProperty(value = "教师工号")
    private String teacherId;

    @ApiModelProperty(value = "教师姓名", example = "小王")
    private String teacherName;

    @ApiModelProperty(value = "课程名称", example = "JavaWeb")
    private String courseName;

    @ApiModelProperty(value = "班级名称", example = "1820551")
    private String className;

    @ApiModelProperty(value = "实验名称", example = "jdk 的安装与环境变量的配置")
    private String experimentName;

    @ApiModelProperty(value = "周数", example = "1")
    private Integer weekNum;

    @ApiModelProperty(value = "周几，传入(1,2,3,4,5,6,7)", example = "1")
    private Integer week;

    @ApiModelProperty(value = "实验时间，传入(1,2,3,4,5)", example = "1")
    private Integer time;

    @ApiModelProperty(value = "逻辑删除(1 已删除，0 未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
